<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
	<title>Machine learning anomaly detection APIs | ElasticSearch 7.7 权威指南中文版</title>
	<meta name="keywords" content="ElasticSearch 权威指南中文版, elasticsearch 7, es7, 实时数据分析，实时数据检索" />
    <meta name="description" content="ElasticSearch 权威指南中文版, elasticsearch 7, es7, 实时数据分析，实时数据检索" />
    <!-- Give IE8 a fighting chance -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
	<link rel="stylesheet" type="text/css" href="../static/styles.css" />
	<script>
	var _link = 'ml-apis.html';
    </script>
</head>
<body>
<div class="main-container">
    <section id="content">
        <div class="content-wrapper">
            <section id="guide" lang="zh_cn">
                <div class="container">
                    <div class="row">
                        <div class="col-xs-12 col-sm-8 col-md-8 guide-section">
                            <div style="color:gray; word-break: break-all; font-size:12px;">原英文版地址: <a href="https://www.elastic.co/guide/en/elasticsearch/reference/7.7/ml-apis.html" rel="nofollow" target="_blank">https://www.elastic.co/guide/en/elasticsearch/reference/7.7/ml-apis.html</a>, 原文档版权归 www.elastic.co 所有<br/>本地英文版地址: <a href="../en/ml-apis.html" rel="nofollow" target="_blank">../en/ml-apis.html</a></div>
                        <!-- start body -->
                  <div class="page_header">
<strong>重要</strong>: 此版本不会发布额外的bug修复或文档更新。最新信息请参考 <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html" rel="nofollow">当前版本文档</a>。
</div>
<div id="content">
<div class="breadcrumbs">
<span class="breadcrumb-link"><a href="index.html">Elasticsearch Guide [7.7]</a></span>
»
<span class="breadcrumb-link"><a href="rest-apis.html">REST APIs</a></span>
»
<span class="breadcrumb-node">Machine learning anomaly detection APIs</span>
</div>
<div class="navheader">
<span class="prev">
<a href="update-license.html">« Update license API</a>
</span>
<span class="next">
<a href="ml-post-calendar-event.html">Add events to calendar API »</a>
</span>
</div>
<div class="chapter xpack">
<div class="titlepage"><div><div>
<h2 class="title">
<a id="ml-apis"></a>Machine learning anomaly detection APIs<a class="edit_me edit_me_private" rel="nofollow" title="Editing on GitHub is available to Elastic" href="https://github.com/elastic/elasticsearch/edit/7.7/docs/reference/ml/anomaly-detection/apis/ml-api.asciidoc">edit</a><a class="xpack_tag" href="https://www.elastic.co/subscriptions"></a>
</h2>
</div></div></div>
<p>You can use the following APIs to perform machine learning anomaly detection activities.</p>
<p>See also <a class="xref" href="ml-df-analytics-apis.html" title="Machine learning data frame analytics APIs"><em>Machine learning data frame analytics APIs</em></a>.</p>
<h3>
<a id="ml-api-anomaly-job-endpoint"></a>Anomaly detection jobs<a class="edit_me edit_me_private" rel="nofollow" title="Editing on GitHub is available to Elastic" href="https://github.com/elastic/elasticsearch/edit/7.7/docs/reference/ml/anomaly-detection/apis/ml-api.asciidoc">edit</a>
</h3>
<div class="ulist itemizedlist">
<ul class="itemizedlist">
<li class="listitem">
<a class="xref" href="ml-put-job.html" title="Create anomaly detection jobs API">Create</a> or <a class="xref" href="ml-delete-job.html" title="Delete anomaly detection jobs API">delete anomaly detection jobs</a>
</li>
<li class="listitem">
<a class="xref" href="ml-put-calendar-job.html" title="Add anomaly detection jobs to calendar API">Add</a> or <a class="xref" href="ml-delete-calendar-job.html" title="Delete anomaly detection jobs from calendar API">delete a anomaly detection job from a calendar</a>
</li>
<li class="listitem">
<a class="xref" href="ml-open-job.html" title="Open anomaly detection jobs API">Open</a> or <a class="xref" href="ml-close-job.html" title="Close anomaly detection jobs API">close anomaly detection jobs</a>
</li>
<li class="listitem">
<a class="xref" href="ml-get-job.html" title="Get anomaly detection jobs API">Get anomaly detection jobs info</a> or <a class="xref" href="ml-get-job-stats.html" title="Get anomaly detection job statistics API">statistics</a>
</li>
<li class="listitem">
<a class="xref" href="ml-flush-job.html" title="Flush jobs API">Flush anomaly detection jobs</a>
</li>
<li class="listitem">
<a class="xref" href="ml-post-data.html" title="Post data to jobs API">Post data to anomaly detection jobs</a>
</li>
<li class="listitem">
<a class="xref" href="ml-update-job.html" title="Update anomaly detection jobs API">Update anomaly detection jobs</a>
</li>
<li class="listitem">
<a class="xref" href="ml-forecast.html" title="Forecast jobs API">Create</a> or <a class="xref" href="ml-delete-forecast.html" title="Delete forecast API">delete forecasts</a>
</li>
</ul>
</div>
<h3>
<a id="ml-api-calendar-endpoint"></a>Calendars<a class="edit_me edit_me_private" rel="nofollow" title="Editing on GitHub is available to Elastic" href="https://github.com/elastic/elasticsearch/edit/7.7/docs/reference/ml/anomaly-detection/apis/ml-api.asciidoc">edit</a>
</h3>
<div class="ulist itemizedlist">
<ul class="itemizedlist">
<li class="listitem">
<a class="xref" href="ml-put-calendar.html" title="Create calendar API">Create calendar</a>, <a class="xref" href="ml-delete-calendar.html" title="Delete calendar API">Delete calendar</a>
</li>
<li class="listitem">
<a class="xref" href="ml-put-calendar-job.html" title="Add anomaly detection jobs to calendar API">Add job to calendar</a>, <a class="xref" href="ml-delete-calendar-job.html" title="Delete anomaly detection jobs from calendar API">Delete job from calendar</a>
</li>
<li class="listitem">
<a class="xref" href="ml-post-calendar-event.html" title="Add events to calendar API">Add scheduled events to calendar</a>, <a class="xref" href="ml-delete-calendar-event.html" title="Delete events from calendar API">Delete scheduled events from calendar</a>
</li>
<li class="listitem">
<a class="xref" href="ml-get-calendar.html" title="Get calendars API">Get calendars</a>, <a class="xref" href="ml-get-calendar-event.html" title="Get scheduled events API">Get scheduled events</a>
</li>
</ul>
</div>
<h3>
<a id="ml-api-filter-endpoint"></a>Filters<a class="edit_me edit_me_private" rel="nofollow" title="Editing on GitHub is available to Elastic" href="https://github.com/elastic/elasticsearch/edit/7.7/docs/reference/ml/anomaly-detection/apis/ml-api.asciidoc">edit</a>
</h3>
<div class="ulist itemizedlist">
<ul class="itemizedlist">
<li class="listitem">
<a class="xref" href="ml-put-filter.html" title="Create filter API">Create filter</a>, <a class="xref" href="ml-delete-filter.html" title="Delete filter API">Delete filter</a>
</li>
<li class="listitem">
<a class="xref" href="ml-update-filter.html" title="Update filter API">Update filters</a>
</li>
<li class="listitem">
<a class="xref" href="ml-get-filter.html" title="Get filters API">Get filters</a>
</li>
</ul>
</div>
<h3>
<a id="ml-api-datafeed-endpoint"></a>Datafeeds<a class="edit_me edit_me_private" rel="nofollow" title="Editing on GitHub is available to Elastic" href="https://github.com/elastic/elasticsearch/edit/7.7/docs/reference/ml/anomaly-detection/apis/ml-api.asciidoc">edit</a>
</h3>
<div class="ulist itemizedlist">
<ul class="itemizedlist">
<li class="listitem">
<a class="xref" href="ml-put-datafeed.html" title="Create datafeeds API">Create datafeed</a>, <a class="xref" href="ml-delete-datafeed.html" title="Delete datafeeds API">Delete datafeed</a>
</li>
<li class="listitem">
<a class="xref" href="ml-start-datafeed.html" title="Start datafeeds API">Start datafeed</a>, <a class="xref" href="ml-stop-datafeed.html" title="Stop datafeeds API">Stop datafeed</a>
</li>
<li class="listitem">
<a class="xref" href="ml-get-datafeed.html" title="Get datafeeds API">Get datafeed info</a>, <a class="xref" href="ml-get-datafeed-stats.html" title="Get datafeed statistics API">Get datafeed statistics</a>
</li>
<li class="listitem">
<a class="xref" href="ml-preview-datafeed.html" title="Preview datafeeds API">Preview datafeed</a>
</li>
<li class="listitem">
<a class="xref" href="ml-update-datafeed.html" title="Update datafeeds API">Update datafeed</a>
</li>
</ul>
</div>
<h3>
<a id="ml-api-snapshot-endpoint"></a>Model Snapshots<a class="edit_me edit_me_private" rel="nofollow" title="Editing on GitHub is available to Elastic" href="https://github.com/elastic/elasticsearch/edit/7.7/docs/reference/ml/anomaly-detection/apis/ml-api.asciidoc">edit</a>
</h3>
<div class="ulist itemizedlist">
<ul class="itemizedlist">
<li class="listitem">
<a class="xref" href="ml-delete-snapshot.html" title="Delete model snapshots API">Delete model snapshot</a>
</li>
<li class="listitem">
<a class="xref" href="ml-get-snapshot.html" title="Get model snapshots API">Get model snapshot info</a>
</li>
<li class="listitem">
<a class="xref" href="ml-revert-snapshot.html" title="Revert model snapshots API">Revert model snapshot</a>
</li>
<li class="listitem">
<a class="xref" href="ml-update-snapshot.html" title="Update model snapshots API">Update model snapshot</a>
</li>
</ul>
</div>
<h3>
<a id="ml-api-result-endpoint"></a>Results<a class="edit_me edit_me_private" rel="nofollow" title="Editing on GitHub is available to Elastic" href="https://github.com/elastic/elasticsearch/edit/7.7/docs/reference/ml/anomaly-detection/apis/ml-api.asciidoc">edit</a>
</h3>
<div class="ulist itemizedlist">
<ul class="itemizedlist">
<li class="listitem">
<a class="xref" href="ml-get-bucket.html" title="Get buckets API">Get buckets</a>
</li>
<li class="listitem">
<a class="xref" href="ml-get-overall-buckets.html" title="Get overall buckets API">Get overall buckets</a>
</li>
<li class="listitem">
<a class="xref" href="ml-get-category.html" title="Get categories API">Get categories</a>
</li>
<li class="listitem">
<a class="xref" href="ml-get-influencer.html" title="Get influencers API">Get influencers</a>
</li>
<li class="listitem">
<a class="xref" href="ml-get-record.html" title="Get records API">Get records</a>
</li>
</ul>
</div>
<h3>
<a id="ml-api-file-structure-endpoint"></a>File structure<a class="edit_me edit_me_private" rel="nofollow" title="Editing on GitHub is available to Elastic" href="https://github.com/elastic/elasticsearch/edit/7.7/docs/reference/ml/anomaly-detection/apis/ml-api.asciidoc">edit</a>
</h3>
<div class="ulist itemizedlist">
<ul class="itemizedlist">
<li class="listitem">
<a class="xref" href="ml-find-file-structure.html" title="Find file structure API">Find file structure</a>
</li>
</ul>
</div>
<h3>
<a id="ml-api-ml-info-endpoint"></a>Info<a class="edit_me edit_me_private" rel="nofollow" title="Editing on GitHub is available to Elastic" href="https://github.com/elastic/elasticsearch/edit/7.7/docs/reference/ml/anomaly-detection/apis/ml-api.asciidoc">edit</a>
</h3>
<div class="ulist itemizedlist">
<ul class="itemizedlist">
<li class="listitem">
<a class="xref" href="get-ml-info.html" title="Get machine learning info API">Machine learning info</a>
</li>
</ul>
</div>
<h3>
<a id="ml-api-delete-expired-data-endpoint"></a>Delete expired data<a class="edit_me edit_me_private" rel="nofollow" title="Editing on GitHub is available to Elastic" href="https://github.com/elastic/elasticsearch/edit/7.7/docs/reference/ml/anomaly-detection/apis/ml-api.asciidoc">edit</a>
</h3>
<div class="ulist itemizedlist">
<ul class="itemizedlist">
<li class="listitem">
<a class="xref" href="ml-delete-expired-data.html" title="Delete expired data API">Delete expired data</a>
</li>
</ul>
</div>
<h3>
<a id="ml-set-upgrade-mode-endpoint"></a>Set upgrade mode<a class="edit_me edit_me_private" rel="nofollow" title="Editing on GitHub is available to Elastic" href="https://github.com/elastic/elasticsearch/edit/7.7/docs/reference/ml/anomaly-detection/apis/ml-api.asciidoc">edit</a>
</h3>
<div class="ulist itemizedlist">
<ul class="itemizedlist">
<li class="listitem">
<a class="xref" href="ml-set-upgrade-mode.html" title="Set upgrade mode API">Set upgrade mode</a>
</li>
</ul>
</div>













































</div>
<div class="navfooter">
<span class="prev">
<a href="update-license.html">« Update license API</a>
</span>
<span class="next">
<a href="ml-post-calendar-event.html">Add events to calendar API »</a>
</span>
</div>
</div>

                  <!-- end body -->
                        </div>
                        <div class="col-xs-12 col-sm-4 col-md-4" id="right_col">
                        
                        </div>
                    </div>
                </div>
            </section>
        </div>
    </section>
</div>
<script src="../static/cn.js"></script>
</body>
</html>